import request from '@/router/axios';



export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-public/unit/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 获取单位下拉选
export const getUnitList = (params) => {
  return request({
    url: '/api/unit/list-none-page',
    method: 'get',
    params: {
      ...params,
    }
  })
}
export const add = (row) => {
  return request({
    url: '/api/hg-public/unit/submit',
    method: 'post',
    data: row
  })
}

export const ondefault = (id) => {
  return request({
    url: '/api/hg-public/unit/default',
    method: 'post',
    params: {
      id,
    }
  })
}
export const remove = (ids) => {
  return request({
    url: '/api/hg-public/unit/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}


